package com.wyth.lottery.utils;

import android.os.Handler;
import android.os.Looper;

/**
 * Created by yangbo on 2017/6/26
 */

public class MainThread extends Handler {
    private static volatile MainThread instance;

    public static MainThread getInstance() {
        if (null == instance) {
            synchronized (MainThread.class) {
                if (null == instance) {
                    instance = new MainThread();
                }
            }
        }
        return instance;
    }
    private MainThread() {
        super(Looper.getMainLooper());
    }
}
